package com.speedjustice.service;

import com.speedjustice.dao.StudentMapper;
import com.speedjustice.model.Student;
import com.speedjustice.model.StudentExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by cuijianhua on 12/22/16.
 */
@Service
public class StudentService {

    @Autowired
    StudentMapper studentMapper;
    public List<Student> getStudentList(){
        StudentExample studentExample = new StudentExample();
        StudentExample.Criteria criteria=studentExample.createCriteria();
        criteria.andIdEqualTo(1);
        return studentMapper.selectByExample(studentExample);
    }
}
